<template>
  <div>
    <div>
      <Modal
        v-model="DriverDetailsModal"
        title="货主详情"
        width="900"
        @on-cancel="cancel"
        class="Modal-zindex"
      >
        <div class="demo-spin-article">
          <div class="ModalBox">
            <div class="ownerhead">
              <div style="display: flex">
                <div class="headPoritimg">
                  <img
                    v-show="this.ownerAvatar != ''"
                    :src="this.ownerAvatar"
                    alt=""
                  />
                </div>

                <div class="Driverheadny">
                  <div class="Driverheadcyfont">
                    <span>{{
                      companyList.companyStatus == "0"
                        ? companyList.name
                        : companyList.companyName
                    }}</span>
                    <span style="margin-left: 6px; color: #999">{{
                      companyListMobile
                    }}</span>
                    <p style="margin-top: 5px">
                      <samp style="color: #999"
                        >交易{{ companyList.relationship }}</samp
                      >
                      <samp style="margin-left: 6px; color: #999">
                        综合信用分{{ companyList.score }}</samp
                      >
                    </p>
                  </div>
                </div>
              </div>
              <!--  -->

              <!-- 1未签约 2已签约  " -->
              <div
                style="
                  width: 80px;
                  padding: 5px;
                  display: inline-block;
                  // background: #ff9900;
                  // color: #fff;
                  font-size: 10px;
                  text-align: center;
                  margin-top: 30px;
                  margin-bottom: 30px;
                  white-space: nowrap;
                  text-overflow: ellipsis;
                  overflow: hidden;
                  border-radius: 5px;
                  margin-right: 1rem;
                  height: 28px;
                "
              >
                <!-- <div
                  :class="
                    companyList.signContract == '2' ? 'headbtn' : 'notSigned'
                  "
                >
                  <span>{{
                    companyList.signContract == "1" ||
                    companyList.signContract == null
                      ? "未签约"
                      : companyList.signContract == "2"
                      ? "已签约"
                      : ""
                  }}</span>
                </div>
                <div class="companycss">
                  <span>{{
                    companyList.companyStatus == "0" ? "个人" : "企业"
                  }}</span>
                </div> -->
              </div>
            </div>

            <!-- 线 -->
            <div class="BoxLine"></div>
            <!-- 详情 -->
            <div class="listDriver">
              <List
                :border="false"
                :split="false"
                header=""
                footer=""
                size="small"
              >
                <ListItem>
                  <span class="listDriverspan">企业认证</span>
                  <span class="listDriverval">{{
                    companyList.companyStatus == "0"
                      ? "未认证"
                      : companyList.companyStatus == "1"
                      ? "已认证"
                      : companyList.companyStatus == "2"
                      ? "审核中"
                      : companyList.companyStatus == "3"
                      ? "已过期"
                      : companyList.companyStatus == "4"
                      ? "已注销"
                      : ""
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">联系人</span>
                  <span class="listDriverval">{{
                    companyListContactname
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">身份证号码</span>
                  <span class="listDriverval">{{ companyIDCardNo }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">联系电话</span>
                  <span class="listDriverval">{{
                    companyListContactPhone
                  }}</span>
                </ListItem>
                <div style="height: 20px; width: 100%"></div>

                <ListItem>
                  <span class="listDriverspan">企业名称</span>
                  <span class="listDriverval">{{
                    companyList.companyName
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">法人</span>
                  <span class="listDriverval">{{
                    companyList.companyUserName
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">身份证号码</span>
                  <span class="listDriverval">{{ IDCardNo }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">社会统一信用码</span>
                  <span class="listDriverval">{{ companyList.certNo }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">注册地址</span>
                  <span class="listDriverval">{{ companyList.street }}</span>
                </ListItem>

                <ListItem>
                  <span class="listDriverspan">法人电话</span>
                  <span class="listDriverval">{{
                    companyListCompanyUserPhone
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">开户行</span>
                  <span class="listDriverval">{{ companyList.bankName }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">银行账号</span>
                  <span class="listDriverval">{{ companyList.bankCode }}</span>
                </ListItem>
              </List>
            </div>
            <!-- 线 -->
            <div class="BoxLine"></div>
            <!-- 照片 -->
            <!-- <div class="headlicence">
              <div class="headlicencediv">
                <div>
                  <div class="Drivercencebnt" style="margin-left: 0.2rem">
                    <Button style="width: 135px" disabled>
                      法人身份证正面</Button
                    >
                  </div>
                  <div class="headlicenceimg" style="margin-left: 0.2rem">
                    <span v-if="this.FrontIDCardC != ''">
                      <img
                        :src="this.FrontIDCardC"
                        @click="showPic(FrontIDCardC)"
                        alt=""
                    /></span>
                  </div>
                </div>
                <div>
                  <div class="Drivercencebnt" style="margin-left: 2.2rem">
                    <Button style="width: 135px" disabled>
                      法人身份证反面</Button
                    >
                  </div>
                  <div class="headlicenceimg">
                    <span v-if="this.ReverseSideIDSard != ''">
                      <img
                        :src="this.ReverseSideIDSard"
                        @click="showPic(ReverseSideIDSard)"
                        alt=""
                    /></span>
                  </div>
                </div>
                <div>
                  <div class="Drivercencebnt" style="margin-left: 2.2rem">
                    <Button style="width: 135px" disabled> 营业执照</Button>
                  </div>
                  <div class="headlicenceimgalone" style="margin-left: 2.2rem">
                    <span v-if="this.BusinessLicense != ''">
                      <img
                        :src="this.BusinessLicense"
                        @click="showPic(BusinessLicense)"
                        alt=""
                    /></span>
                  </div>
                </div>
              </div>
            </div>
            <div class="headlicence">
              <div class="headlicencediv">
                <div>
                  <div class="Drivercencebnt" style="margin-left: 0.2rem">
                    <Button style="width: 135px" disabled>
                      联系人身份证正面</Button
                    >
                  </div>
                  <div class="headlicenceimg" style="margin-left: 0.2rem">
                    <span v-if="this.contactidCardFontPicFileId != ''">
                      <img
                        :src="this.contactidCardFontPicFileId"
                        @click="showPic(contactidCardFontPicFileId)"
                        alt=""
                    /></span>
                  </div>
                </div>
                <div>
                  <div class="Drivercencebnt" style="margin-left: 2.2rem">
                    <Button style="width: 135px" disabled>
                      联系人身份证反面</Button
                    >
                  </div>
                  <div class="headlicenceimg">
                    <span v-if="this.contactidCardBackPicFileId != ''">
                      <img
                        :src="this.contactidCardBackPicFileId"
                        @click="showPic(contactidCardBackPicFileId)"
                        alt=""
                    /></span>
                  </div>
                </div>
                <div>
                  <div class="Drivercencebnt" style="margin-left: 2.2rem">
                    <Button style="width: 135px" disabled>
                      委托授权书照片</Button
                    >
                  </div>
                  <div class="headlicenceimgalone" style="margin-left: 2.2rem">
                    <span v-if="this.OperatorAuthorization != ''">
                      <img
                        :src="this.OperatorAuthorization"
                        @click="showPic(OperatorAuthorization)"
                        alt=""
                    /></span>
                  </div>
                </div>
              </div>
            </div> -->
            <!-- 线 -->
            <div class="BoxLine"></div>
            <!-- 详情 -->
            <div style="margin-top: 20px">
              <Tabs
                v-model="certificates"
                @on-click="certificatesClick"
                type="card"
              >
                <TabPane label="收到评价" name="comment">
                  <Row>
                    <Table
                      size="default"
                      :loading="loading"
                      border
                      :columns="commentHeader"
                      :data="receivedEvaluationData"
                      sortable="custom"
                      @on-sort-change="changeSort"
                      @on-selection-change="showSelect"
                      ref="table"
                      class="table"
                    >
                    </Table>
                  </Row>
                  <Row type="flex" justify="end" class="page">
                    <Page
                      :current="searchForm.pageNumber"
                      :total="receivedEvaluationTable"
                      :page-size="searchForm.pageSize"
                      @on-change="changePage"
                      @on-page-size-change="changePageSize"
                      :page-size-opts="[10, 20, 50]"
                      size="small"
                      show-total
                      show-elevator
                      show-sizer
                    ></Page>
                  </Row>
                </TabPane>
                <TabPane label="收到投诉" name="complaint">
                  <Row>
                    <Table
                      size="default"
                      :loading="loading"
                      border
                      :columns="complaintHeader"
                      :data="receiveComplaintsData"
                      sortable="custom"
                      @on-sort-change="changeSort"
                      @on-selection-change="showSelect"
                      ref="table"
                      class="table"
                    >
                    </Table>
                  </Row>
                  <Row type="flex" justify="end" class="page">
                    <Page
                      :current="searchForm.pageNumberEvaluation"
                      :total="receiveComplaintsTabl"
                      :page-size="searchForm.pageSizeComplaints"
                      @on-change="receiveChangePage"
                      @on-page-size-change="receiveChangePageSize"
                      :page-size-opts="[10, 20, 50]"
                      size="small"
                      show-total
                      show-elevator
                      show-sizer
                    ></Page>
                  </Row>
                </TabPane>
              </Tabs>
            </div>
            <!-- 标签页 -->
            <!-- 线 -->
            <div class="BoxLine"></div>
            <div style="margin-top: 10px"></div>
          </div>
        </div>
        <Spin size="large" fix v-if="spinShow"></Spin>
        <div slot="footer"></div>
      </Modal>
    </div>
  </div>
</template>

<script>
import {
  getCommpanyInformation,
  complaintList,
  cargoownerevaluateList,
} from "@/api/index";
import { getStore, setStore } from "@/libs/storage";
import defaultAvatar from "@/assets/customer.png";

export default {
  data() {
    return {
      spinShow: false,

      defaultAvatar: defaultAvatar, //默认头像
      DriverDetailsModal: this.OwnerDetailsModalue,
      companyList: {},
      OwnerDetailsId: this.OwnerDetailsId,
      header: {
        accessToken: getStore("accessToken"),
      },
      accessToken: getStore("accessToken"),
      ownerAvatar: "",
      FrontIDCardC: "", //身份证正面
      ReverseSideIDSard: "", //身份证返面
      BusinessLicense: "", //营业执照
      CorporateIDCard: "", //法人身份证(盖公章)
      OperatorAuthorization: "", //经办人授权协议
      contactidCardBackPicFileId: "", //联系人/身份证正面
      contactidCardFontPicFileId: "", //联系人身份证返面
      authorizationId: "",
      age: "", //
      DrivingAge: "",
      IDCardNo: "",
      companyIDCardNo: "",

      companyListMobile: "", // 公司电话
      companyListContactname: "", // 联系人
      companyListContactPhone: "", //联系电话
      companyListCompanyUserPhone: "", // 联系电话

      receivedEvaluationData: [],
      receiveComplaintsData: [],
      receivedEvaluationTable: "0",
      receiveComplaintsTabl: "0",
      searchForm: {
        // 搜索框对应data对象
        pageNumber: 1, // 当前页数
        pageSize: 5, // 页面大小
        pageNumberEvaluation: 1, // 当前页数
        pageSizeComplaints: 5, // 页面大小
        sort: "", // 默认排序字段
        order: "", // 默认排序方式
        userId: this.OwnerDetailsId,
      },
      certificates: "comment", //切换
      commentHeader: [
        {
          title: "托运单号",
          key: "orderNo",
          minWidth: 190,
          sortable: false,
        },
        {
          title: "综合评分",
          key: "praise",
          minWidth: 120,
          render: (h, params) => {
            if (params.row.goodRate >= 1) {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: parseInt(params.row.goodRate), //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            } else {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: 0, //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            }
          },
        },
        {
          title: "好装好卸",
          key: "loadingUnloading",
          minWidth: 120,
          render: (h, params) => {
            if (params.row.loadingUnloading >= 1) {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: parseInt(params.row.loadingUnloading.toFixed(1)), //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            } else {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: 0, //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            }
          },
        },
        {
          title: "结算及时",
          key: "settlement",
          minWidth: 120,
          render: (h, params) => {
            if (params.row.settlement >= 1) {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: parseInt(params.row.settlement.toFixed(1)), //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            } else {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: 0, //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            }
          },
        },
        {
          title: "货源靠谱",
          key: "sourceGoods",
          minWidth: 120,
          render: (h, params) => {
            if (params.row.sourceGoods >= 1) {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: parseInt(params.row.sourceGoods.toFixed(1)), //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            } else {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: 0, //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            }
          },
        },
        {
          title: "交通便利",
          key: "traffic",
          minWidth: 120,
          render: (h, params) => {
            if (params.row.traffic >= 1) {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: parseInt(params.row.traffic.toFixed(1)), //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            } else {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: 0, //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            }
          },
        },
        {
          title: "时间",
          key: "createTime",
          minWidth: 190,
          sortable: false,
        },
      ],
      complaintHeader: [
        {
          title: "托运单号",
          key: "orderNo",
          minWidth: 190,
          sortable: false,
        },
        {
          title: "发起人",
          key: "name",
          minWidth: 120,
          sortable: false,
          render: (h, params) => {
            let val = params.row.name;
            return h("div",val)
            // return h(
            //   "Tooltip",
            //   {
            //     props: {
            //       placement: "top",
            //       maxWidth: "220",
            //       content: 15836357536,
            //       transfer: true,
            //     },
            //   },
            //   cargoOwnerName
            // );
          },
        },
        {
          title: "投诉类型",
          key: "problemType",
          minWidth: 135,
        },
        {
          title: "发起内容",
          key: "describes",
          minWidth: 190,
          sortable: false,
          render: (h, params) => {
            let cargoOwnerName = params.row.describes;
            return h(
              "Tooltip",
              {
                props: {
                  placement: "top",
                  maxWidth: "220",
                  content: params.row.describes,
                  transfer: true,
                },
              },
              cargoOwnerName
            );
          },
        },
        {
          title: "发起时间",
          key: "createTime",
          minWidth: 185,
          sortable: false,
        },
        {
          title: "结束时间",
          key: "updateTime",
          minWidth: 190,
          sortable: false,
        },
      ],
      data: [],
    };
  },
  props: {
    OwnerDetailsModalue: {
      type: Boolean,
      default: false,
    },
    // data: {
    //   type: Object,
    // },
    OwnerDetailsId: {
      type: String,
      default: "",
    },
  },
  watch: {
    OwnerDetailsModalue(val) {
      this.setCurrentValue(val);
    },
    visible(value) {
      this.$emit("input", value);
    },
    OwnerDetailsId(val) {
      if (val != "") {
        this.OwnerDetailsId = val;
        this.getDataList();
        this.receivedEvaluation();
      }
    },
  },

  methods: {
    // 关闭
    cancel() {
      this.$emit("OwnerDetaiEnd", this.DriverDetailsModal);
    },
    setCurrentValue(value) {
      // this.ownerAvatar = "";
      // this.FrontIDCardC = ""; //身份证正面
      // this.ReverseSideIDSard = ""; //身份证返面
      // this.BusinessLicense = ""; //营业执照
      // this.CorporateIDCard = ""; //法人身份证(盖公章)
      // this.OperatorAuthorization = ""; //经办人授权协议
      // this.age = ""; //
      // this.DrivingAge = "";
      // this.IDCardNo = "";
      if (value === this.DriverDetailsModal) {
        return;
      }
      this.DriverDetailsModal = value;
    },
    getAge(value) {
      let birthdays = new Date(value);
      let d = new Date();
      let age =
        d.getFullYear() -
        birthdays.getFullYear() -
        (d.getMonth() < birthdays.getMonth() ||
        (d.getMonth() == birthdays.getMonth() &&
          d.getDate() < birthdays.getDate())
          ? 1
          : 0);
      return age;
    },
    // 截取
    intercept(val, num, num1) {
      if (val.length >= 10) {
        let text1 = val.substring(0, num);
        let text2 = val.substring(num1);
        return `${text1}*****${text2}`;
      } else if (val.length == 10) {
        let text1 = val.substring(0, num);
        let text2 = val.substring(num1);
        return `${text1}*****${text2}`;
      } else if (val.length == 2 || val.length == 3 || val.length == 4) {
         return val;
        // let text1 = val.substring(0, num);
        // if (val.length == 2) {
        //   return `${text1}*`;
        // } else if (val.length == 3) {
        //   return `${text1}**`;
        // } else if (val.length == 4) {
        //   return `${text1}***`;
        // }
      } else {
        return val;
      }
    }, // 拼接照片
    MosaicPhotos(val) {
      let img =
        this.$baseUrl +
        "/freight/file/view/" +
        val +
        "?accessToken=" +
        this.accessToken +
        "&preview=true";
      return img;
    },
    // 获取数据
    getDataList() {
      this.spinShow = true;
      getCommpanyInformation({ userId: this.OwnerDetailsId }).then((res) => {
        this.spinShow = false;
        if (res.code == 200) {
          this.companyList = res.result;
          this.IDCardNo = this.intercept(this.companyList.num, 6, 12);
          this.companyIDCardNo = this.intercept(
            this.companyList.contactnum,
            6,
            12
          );
          this.companyListMobile = this.intercept(
            this.companyList.mobile,
            3,
            8
          );
          this.companyListContactPhone = this.intercept(
            this.companyList.contactPhone,
            3,
            8
          );
          this.companyListCompanyUserPhone = this.intercept(
            this.companyList.companyUserPhone,
            3,
            8
          );
          this.companyListContactname = this.intercept(
            this.companyList.contactname,
            1
          );

          if (this.companyList.avatar) {
            if (this.companyList.avatar.indexOf(":") !== -1) {
              this.ownerAvatar = this.defaultAvatar;
            } else {
              this.ownerAvatar = this.MosaicPhotos(this.companyList.avatar);
            }
          } else {
            this.ownerAvatar = this.defaultAvatar;
          }

          if (this.companyList.idCardFontPicFileId != null) {
            this.FrontIDCardC = this.MosaicPhotos(
              this.companyList.idCardFontPicFileId
            );
          }
          if (this.companyList.idCardBackPicFileId != null) {
            this.ReverseSideIDSard = this.MosaicPhotos(
              this.companyList.idCardBackPicFileId
            );
          }
          if (this.companyList.companyLicenseFileId != null) {
            this.BusinessLicense = this.MosaicPhotos(
              this.companyList.companyLicenseFileId
            );
          }
          if (this.companyList.corporateIdCard != null) {
            this.CorporateIDCard = this.MosaicPhotos(
              this.companyList.corporateIdCard
            );
          }

          if (this.companyList.contactidCardBackPicFileId != null) {
            this.contactidCardBackPicFileId = this.MosaicPhotos(
              this.companyList.contactidCardBackPicFileId
            );
          }
          if (this.companyList.contactidCardFontPicFileId != null) {
            this.contactidCardFontPicFileId = this.MosaicPhotos(
              this.companyList.contactidCardFontPicFileId
            );
          }
          // if (this.companyList.authorizationId != null) {
          //   this.authorizationId = this.MosaicPhotos(
          //     this.companyList.authorizationId
          //   );
          // }

          if (this.companyList.authorizationId != null) {
            this.OperatorAuthorization = this.MosaicPhotos(
              this.companyList.authorizationId
            );
          }
        } else {
          this.$Message.error(res.message);
        }
      });
    },
    showPic(v) {
      let image = new Image();
      image.src = v;
      let viewer = new Viewer(image, {
        hidden: function () {
          viewer.destroy();
        },
      });
      viewer.show();
    },
    // 页面切换
    changePage(v) {
      this.searchForm.pageNumber = v;
      this.receivedEvaluation();
    },
    changePageSize(v) {
      this.searchForm.pageSize = v;
      this.receivedEvaluation();
    },
    // 收到投诉
    receiveChangePage(v) {
      this.searchForm.pageNumberEvaluation = v;
      this.receiveComplaints();
    },
    receiveChangePageSize(v) {
      this.searchForm.pageSizeComplaints = v;
      this.receiveComplaints();
    },
    // 切换
    certificatesClick() {
      if (this.certificates == "comment") {
        this.receivedEvaluation();
        // 收到评价
      } else {
        this.receiveComplaints();
      }
    },
    // 收到评价
    receivedEvaluation() {
      this.searchForm.userId = this.OwnerDetailsId;
      cargoownerevaluateList(this.searchForm).then((res) => {
        if (res.result.records.length > 0) {
          this.receivedEvaluationData = res.result.records;
          this.receivedEvaluationTable = res.result.total;
        } else {
          this.receivedEvaluationData = [];
        }
      });
    },
    // 收到投诉
    receiveComplaints() {
      this.searchForm.userId = this.OwnerDetailsId;
      complaintList(this.searchForm).then((res) => {
        if (res.result.records.length > 0) {
          this.receiveComplaintsData = res.result.records;
          this.receiveComplaintsTabl = res.result.total;
        } else {
          this.receiveComplaintsData = [];
        }
      });
    },
  },

  created() {},
};
</script>

<style lang="less">
.listDriver {
  .ivu-list-small .ivu-list-item {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}
.my-content {
  width: 100px;
}
.my-limitation {
  width: 170px;
}
.Line {
  // border-bottom: 1px solid #eee;
  // border-bottom-color: rgb(255, 255, 255);
  border: 0;
  border-top: 1px solid #eee;
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: rgb(238, 238, 238);
  border-bottom: 1px solid #fff;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: rgb(255, 255, 255);
  margin: 20px 0;
}
.listDriver {
  margin-top: 15px;
  // margin-left: 30px;
  .listDriverspan {
    text-align: right;
    width: 100px;
    color: #999;
  }
  .listDriverval {
    margin-left: 15px;
  }
}
.Owner {
  margin-left: 20px;
  // height: 80px;
  display: flex;
  .Ownerportrait {
    width: 60px;
    height: 60px;
    img {
      margin-top: 20px;
      width: 100%;
      height: 100%;
    }
  }
  .OwnerName {
    margin-left: 17px;
    padding: 25px 0;
    .OwnerName1 {
      margin-left: 10px;
      color: #999999;
    }
    .Owner-company {
      margin-top: 10px;
      cursor: pointer;
    }
  }
}
.ReasonRejection {
  color: #08c;
  margin-left: -600px;
  padding: 25px 0;
  margin-top: 20px;
}
.ReasonsFailureAudit {
  color: red;
}
.Ownertiem {
  padding: 25px 0;
  margin-top: 2px;
  .statee,
  .implemented,
  .end,
  .refuse,
  .AuditFailed,
  .quotation,
  .deeltes {
    width: 50px;
    margin-bottom: 10px;
    background-color: rgb(70, 136, 71);
    color: #fff;
    // line-height: 55px;
    padding: 2px 0;
    text-align: center;
    font-size: 12px;
    margin-left: 9px;
    border-radius: 3px;
    display: inline-block;
    margin-left: 103px;
  }
  .quotation {
    background-color: rgb(70, 136, 71);
  }
  .implemented {
    background-color: #2d8cf0;
  }
  .deeltes {
    background-color: #d3d3d3;
  }
  .AuditFailed {
    background-color: #dc143c;
    width: 70px;
    margin-left: 83px;
  }
}
.CarrierSource {
  width: 70px;
  margin-bottom: 10px;
  background-color: #808080;
  color: #fff;
  // line-height: 55px;
  padding: 2px 0;
  text-align: center;
  font-size: 12px;
  margin-left: 25px;
  border-radius: 3px;
  display: inline-block;
}
.butTable {
  width: 100%;
  padding: 5px;
  // border: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  // background-color: #f8f8f9;
  .butTableoffer {
    font-size: 16px;
    font-weight: 700;
    margin-top: 5px;
    margin-left: 5px;
    font-size: 16px;
    margin-bottom: 6px;
    span {
      font-size: 14px;
      font-weight: 400;
      // color: #909399;
    }
  }
}
.Cardokbtn {
  position: relative;
  bottom: -5px;
  left: 0;
}
.okbtn {
  z-index: 99999;
  width: 100%;
  margin-top: -15px;
  background-color: #f5f5f5;
  border: 1px solid #cdcdcd;
  height: 70px;
  line-height: 70px;
}
.ModalBox {
  padding: 0 5px;
  overflow: auto;
  height: 30rem;
  .ownerhead {
    // margin-top: 1rem;
    display: flex;

    justify-content: space-between;
    border-bottom: 2px solid #eee;
    .headPoritimg {
      // margin-left: 1.8rem;
      width: 50px;
      height: 50px;
      margin-top: 1rem;
      border: 1px solid #eee;
      border-radius: 50%;
      img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
      }
    }
    .Driverheadny {
      // width: 400px;
      margin-left: 1rem;
      font-size: 14px;
      font-weight: normal;
      .Driverheadcyfont {
        // width: 250px;
        margin-top: 23px;
      }
      .headcRate {
        .ivu-rate-star {
          width: 8px;
          height: 8px;
        }
      }
    }
  }
  .headdetails {
    margin: 10px 0;
  }
}
.headlicence {
  margin: 10px 0;
  display: flex;
  .headlicencefontsiz {
    margin-left: 2rem;
  }
  .headlicencediv {
    display: flex;
  }
  .headlicenceimg,
  .headlicenceimgalone,
  .headlicenceimgalone1,
  .headlicenceimglone2 {
    margin-left: 2.4rem;
    width: 135px;
    height: 80px;
    padding: 2px;
    cursor: pointer;
    border: 1px solid #eee;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .Drivercencebnt {
    margin-left: 2.4rem;
    margin-top: 5px;
    font-size: 14px;
    margin-bottom: 6px;
  }
  .headlicenceimgalone {
    width: 135px;
  }
  .headlicenceimgalone1 {
    width: 135px;
  }
  .headlicenceimglone2 {
    width: 135px;
  }
  .complaintTabs {
    margin-top: 10px;
    display: flex;
  }
}
.BoxLine {
  content: "";
  width: 10px;
  height: 10px;
  // border-bottom: 1px solid #eee;
  position: absolute;
  top: 22px;
  right: -10px;
}
// .BoxLineanf::after {
//   content: "";
//   width: 10px;
//   height: 10px;
//   border-bottom: 1px solid #dcdee2;
//   position: absolute;
//   top: 22px;
//   right: -10px;
// }
.ListItemcss {
  height: 200px;
  overflow: auto;
}
.ListItemMetacss {
  margin-left: 40px;
}
.ListItemMetac1 {
  width: 350px;
  margin-left: 110px;
  color: #999999;
  font-size: 10px;
}
.el-descriptions__header {
  margin-bottom: 10px;
}
.NotFilled {
  font-size: 14px;
  color: #a9a9a9;
}
.LengthvehicleType {
  width: 250px;
  // white-space: nowrap;
  // overflow: hidden;
  // text-overflow: ellipsis;
}
.Driverheadbtn {
  display: flex;
  // margin-left: 24.5rem;
  padding-right: 15px;
  .headbtn,
  .companycss,
  .notSigned {
    width: 80px;
    padding: 5px;
    display: inline-block;
    // background: #2d8cf0;
    // color: #fff;
    font-size: 10px;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    border-radius: 5px;
    height: 28px;
  }
  // .companycss {
  //   // margin-left: 10px;
  // }
  // .notSigned {
  //   // background: #e6ebf1;
  // }
}
.Modal-zindex {
  .ivu-modal-wrap,
  .ivu-modal-mask {
    z-index: 2000 !important;
  }
}
.ivu-rate-star {
  width: 8px;
  height: 8px;
  /* margin-right: 3px; */
}
</style>
